package com.gdut;

public class demo7 {
    public static void main(String[] args) {
        int[] arr1 = new int[10];
        for (int i = 0; i < 10; i++) {
            arr1[i] = i;
        }
        for (int i = 0; i < 10; i++) {
            System.out.print(arr1[i] + " ");
        }
        int[] arr2 = arr1;
        arr2[0] = 5;
        System.out.println();
        System.out.println(arr2[0]);
        System.out.println(arr1[0]);
    }
}
